package org.example;

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.util.Map;
import oracle.jdbc.driver.OracleDriver;

public class Main {
    public static void main(String[] args) {
        String ADW_DRIRVER = "oracle.jdbc.driver.OracleDriver";
       String ADW_URL="jdbc:oracle:thin:@adwjoy_high?TNS_ADMIN=/Users/joygao/Downloads/Wallet_adwjoy";

        try{
            Class.forName(ADW_DRIRVER);
            Connection conn = DriverManager.getConnection(ADW_URL,"admin","Gao#123456789");
            String catalog = conn.getCatalog();
            String schema = conn.getSchema();
//            DatabaseMetaData dbmd = conn.getMetaData();
            System.out.println(catalog);
            System.out.println(schema);
        }catch(Exception e){
            e.printStackTrace();
        }


    }
}